package com.xsz.controller;
/**
 * @Description: java类作用描述
 * @Author: Bsea
 * @CreateDate: 2019/9/2$ 21:48$
 */


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class UserController {

    @GetMapping("/{id}")
    public void get(@PathVariable String id) {

        throw new com.xsz.excetion.UserNotExistException(id);
    }
    @GetMapping("error2")
    public void get2() {
        int a=1/0;
    }
}
